#!bin/bash

mkdir -p /data1/log/squirrel_bakend
mkdir -p /data1/log/squirrel_core
mkdir -p /data1/data
mkdir -p /data1/file

crontab -u root /etc/cron.d/makaka-cron
/etc/init.d/cron restart

python -u /opt/app/squirrel_bakend/main.py > /data1/log/squirrel_bakend/app.log 2>&1 &
python -u /opt/app/squirrel_bakend/task/cycle_task.py > /data1/log/squirrel_bakend/cycle_task.log 2>&1 &


tail -f /dev/null
